var QQMapWX = require('../../../libs/qqmap-wx-jssdk.js');
var qqmapsdk;
Page({
  data: {
    latitude: 0,//地图初次加载时的纬度坐标
    longitude: 0, //地图初次加载时的经度坐标
    name: "" //选择的位置名称
  },
  onLoad: function () {
    this.setData({
      latitude:getApp().data.activity_lat,
      longitude: getApp().data.activity_lng 
    })
    getApp().data
    // 实例化API核心类
    qqmapsdk = new QQMapWX({
      key: 'EADBZ-QCZ6Q-FDK54-GBQ4X-QY5B5-CVFFZ'
    });
    this.moveToLocation();
  },
  
});